﻿using UnityEngine;
using System.Collections;

public class WinGame : MonoBehaviour {
	public IntVector2 winpos;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnTriggerEnter2D (Collider2D collision)
	{	
		PlayerControl player = collision.gameObject.GetComponent<PlayerControl> ();
		if (player != null) {
			//Debug.Log ("You win!");
		}
	}
}
